package com.source.baseData.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.source.baseData.entity.BarcodeMachine;
import com.source.baseData.vo.BarcodeMachineVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author fengqing
 * @since 2021.2.6
 */
public interface BarcodeMachineService extends IService<BarcodeMachine> {

    /**
     * getPage
     * @param page
     * @return
     */
    IPage<BarcodeMachineVo> getPage(Page<BarcodeMachineVo> page);

    /**
     * getOneVoById
     * @param barcodeMachineId
     * @return
     */
    BarcodeMachineVo getOneVoById(@Param("barcodeMachineId") String barcodeMachineId);

    /**
     * 根据屠宰场id查询脚标机信息
     * @return
     * @param slaughterHouseId
     */
    List<BarcodeMachine> findByHouseId(String slaughterHouseId);


    List<BarcodeMachine> getPageByLike(String keyWord);

    BarcodeMachine findByMachineNumber(String machineNumber);

    List<BarcodeMachine> findUnGranted();
}
